﻿using CollegeRevApp.DataModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CollegeRevApp.Web.DataAdapters
{
    public interface ICollegeAppAdapter
    {
        //Add college
        College AddCollege(College college);

        //Get all colleges
        List<College> GetAllColleges();

        //Get college
        College GetCollege(int id);

        //Edit college
        College EditCollege(int id, College college);

        //Delete college
        College DeleteCollege(int id);

        //Add review
        Review AddReview(Review review);

        //Get all reviews
        List<Review> GetAllReviews();

        //Get reviews for college
        List<Review> GetReviewsForCollege(int id);

        //Edit review
        Review EditReview(int id, Review review);

        //Delete review
        Review DeleteReview(int id);

        //Get average rating for college
        float GetAverageRating(int id);


    }
}
